﻿@model IEnumerable<JT.Domain.TimeLine.Year>

@{
    ViewData["Title"] = "Index";
}


    <div class="card mt-2">
        <p>
            <a asp-action="Create">添加</a>
        </p>
        <table class="table">
            <thead>
                <tr>
                    <th>@Html.DisplayNameFor(m => m.YearId)</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.YearId</td>
                        <td>
                            <a asp-action="Edit" asp-route-id="@item.YearId">Edit</a> |
                            <a asp-action="Details" asp-route-id="@item.YearId">Details</a> |
                            <a asp-action="Delete" asp-route-id="@item.YearId">Delete</a>
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
